package proxy;

import java.lang.reflect.Proxy;

/**
 * Created by yangluhua on 2016/9/10 0010.
 */
public class ClientTest {
    public static void main(String[] args) {
        ProtoService protoService = new ProtoService();
        EnhanceService enhanceService = new EnhanceService();
        enhanceService.setProtoService(protoService);
        //Service service = (Service) Proxy.newProxyInstance(protoService.getClass().getClassLoader(),new Class[]{Service.class},enhanceService);
        //service.eat();
    }
}
